const promise = new Promise((resolve, reject) => {
    resolve("success1");
    reject("error");
    resolve("success2");
  });
//   promise
//   .then(res => {
//       console.log("then: ", res);
//     }).catch(err => {
//       console.log("catch: ", err);
//     })
//   // then：success1

  promise
  .catch(err => {
    console.log("catch: ", err);
  })
  .then(res => {
      console.log("then: ", res);
    })
  // then：success1